package com.gang.controller;

import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author maj
 * @ClassName HelloController
 * @Description
 * @date 2020-06-26 21:47
 */
@RestController
@RequestMapping("/api")
public class HelloController {

  private boolean switchFlag=false;

  @RequestMapping(path = "/hello")
  public String test(){
    return "hello"+switchFlag;
  }

  public boolean isSwitchFlag() {
    return switchFlag;
  }

  public void setSwitchFlag(boolean switchFlag) {
    this.switchFlag = switchFlag;
  }
}
